package org.originit.factory;

import org.originit.exception.BeansException;
import org.originit.factory.core.io.DefaultResourceLoader;
import org.originit.factory.support.BeanDefinitionReader;
import org.originit.factory.support.XmlBeanDefinitionReader;

public class XmlConfigurableBeanFactory extends DefaultListableBeanFactory{

    BeanDefinitionReader beanDefinitionReader = new XmlBeanDefinitionReader(this,new DefaultResourceLoader());

    public XmlConfigurableBeanFactory(String location) throws BeansException {
        beanDefinitionReader.loadBeanDefinitions(location);
    }
}
